﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using YGD.Generic;

namespace SinaApi
{
    public partial class Status
    {
        public DateTime created_date
        {
            get { return this.created_at.JavascriptDateTimeToCSharpDateTime(); }
        }
    }

    [Serializable]
    [DataContract]
    public partial class Status
    {
        [DataMember]
        public Int64 id { get; set; }

        [DataMember]
        public string created_at { get; set; }

        
        [DataMember]
        public string text { get; set; }
        [DataMember]
        [XmlElement(ElementName="user")]
        public User user { get; set; }

    }
    [Serializable]
    [DataContract]
    [XmlRoot(ElementName="statuses")]
    public class StatusCollection
    {
        [XmlElement(ElementName="status")]
        public List<Status> items { get; set; }
    }
}
